package com.only.common.util.ssh;

import lombok.Data;

import java.util.Map;

@Data
public class CmdExecuteResultMap {
    /**
     * 是否成功
     */
    private boolean successful;

    /**
     * 返回Map结果，根据命令分类结果
     */
    private Map<String, String> resultMap;

    public CmdExecuteResultMap(boolean successful, Map<String, String> resultMap) {
        this.successful = successful;
        this.resultMap = resultMap;
    }

    @Override
    public String toString() {
        return "CmdExecuteResult{" +
                "successful=" + successful +
                ", executeLog='" + resultMap + '\'' +
                '}';
    }
}
